using UnityEngine;

public class CheckIntro : MonoBehaviour
{
	public ParticleSystem pars;

	private bool play;

	public GameObject CheckSoundObj;

	private void OnCollisionEnter2D(Collision2D coll)
	{
		if (!(coll.gameObject.layer.ToString() != "GROUND"))
		{
			return;
		}
		if (!play)
		{
			play = true;
			pars.Play();
			if (StartManager.click == 0)
			{
				Object.FindObjectOfType<SoundMusicManager>().Explosion();
				Invoke("turnoffbombsound", 1f);
			}
		}
		Object.FindObjectOfType<PanelAnimator>().show();
	}

	public void turnoffbombsound()
	{
		Object.FindObjectOfType<SoundMusicManager>().TurnoffExplosion();
	}
}
